package com.ethan.cj.ssm.dao;

import com.ethan.cj.ssm.entity.Credit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface CreditDao {

    List<Credit> list();

    /**
     * 分页查询
     * @param map
     * @return
     */
    List<Credit> getCreditList(Map<String,Object> map);

    /**
     * 统计总数
     */
    int getTotal(Map<String, Object> map);

    Credit selectCreditCid(@Param("cid") int cid,@Param("cstate") int cstate);
}
